using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace KFGame
{
    public class KFCleanDatas : MonoBehaviour
    {
        // Start is called before the first frame update
        KFBackView backView;

        void Start()
        {
            backView = GetComponent<KFBackView>();
            backView.onMenuEvent += onBEvent;
        }

        void onBEvent(string name)
        {

            if (name == "event_cleeandatas")
            {
                Debug.Log("reve " + name);
                KFDatasManager kdm = new KFDatasManager();
                kdm.cleanAll();
                KF.kf.app.showMessageBoxToCenter("己清空记录数据！！！", "提示", 3, "cleandatas");
            }
        }

        // Update is called once per frame
        void Update()
        {

        }
    }
}
